package com.wuliu.system.domain.dto.applet;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

/**
 * @author realue
 * @version 1.0
 * @date 2023-11-02 9:16
 */
@ApiModel
@Data
public class BasCustAddressDto {
    @ApiModelProperty(value = "id,修改时必填")
    private String id;

    @Range(min = 1,max = 2,message = "类型不正确")
    @ApiModelProperty(value = "类型 1寄件地址 2收件地址")
    private Integer type;

    @ApiModelProperty(value = "默认1是 2否")
    private Integer defaultFlag;

    @ApiModelProperty(value = "国家")
    private String country;

    @NotBlank(message = "省份不能为空")
    @ApiModelProperty(value = "省")
    private String province;

    @NotBlank(message = "城市不能为空")
    @ApiModelProperty(value = "市")
    private String city;

    @NotBlank(message = "区/县不能为空")
    @ApiModelProperty(value = "区")
    private String district;

    @NotBlank(message = "街道不能为空")
    @ApiModelProperty(value = "街道")
    private String street;

    @NotBlank(message = "地址不能为空")
    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "公司名称")
    private String compName;

    @NotBlank(message = "联系人不能为空")
    @ApiModelProperty(value = "联系人")
    private String name;

    @NotBlank(message = "电话不能为空")
    @ApiModelProperty(value = "电话")
    private String tel;

}
